/* eslint-disable no-prototype-builtins */
import Vue from 'vue'

const files = require.context('./modules', false, /\.js$/)
files.keys().forEach(key => {
    const filterModule = files(key).default
    for (const filterName in filterModule) {
        if (filterModule.hasOwnProperty(filterName)) {
            Vue.filter(filterName, filterModule[filterName])
        }
    }
})
